import { createRouter, createWebHistory } from 'vue-router'


export const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/book',
      name: 'home',
      component: () => import('@/views/Book.vue'),    
    },
    {
      path: '/bookAdd',
      component: () => import('@/views/BookAddOrEdit.vue'),    
    },
    {
      path: '/bookEdit',
      component: () => import('@/views/BookAddOrEdit.vue'),    
    },
  ],
})
